package proxy;

/**
 * @author wcj
 * @Date 2021/6/22 21:21
 * @Version 1.0
 */
public class Proxy implements Pursuit {

 private RealSubject subject;

 public Proxy(SchoolGirl schoolGirl) {
  subject = new RealSubject(schoolGirl);
 }

 @Override
 public void giveFlower() {
  subject.giveFlower();
 }

 @Override
 public void giveDolls() {
  subject.giveDolls();
 }

 @Override
 public void giveChocolate() {
  subject.giveChocolate();
 }
}
